﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using System.IO;

namespace Might.ServiceServer.SvnService {


    [ServiceContract]
    public interface ISvnService {

        [OperationContract]
        List<string> Svn_List(string address, string username, string password);

        [OperationContract]
        bool Svn_Commit(string from_where);

        [OperationContract]
        bool Svn_Checkout(string svn_address, string username, string password);

        [OperationContract]
        string Svn_LoadFile(string svn_file_address, string username, string password);

        [OperationContract]
        bool Svn_SaveFile(string svn_file_address, string username, string password, string filetext);

        [OperationContract]
        bool Clean(string mightUsername);

        [OperationContract]
        Stream GetFile(string svnAddress, string svnUsername, string svnPassword, string mightUsername, FileMode fileMode, FileAccess fileAccess);

        [OperationContract]
        Stream NewFileUnderRepository(string address, string username, string password);

    }

}
